{:hook('body_start')}
<div class="navbar navbar-fixed-top">
   <div class="navbar-inner">
     <div class="container">
       <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
       </a>
       <!--a class="brand" href="__ROOT__/"><img src="__TMPL__Public/images/logo.png"/></a-->
       <div class="nav-collapse collapse" id="main-menu">
       	<!--?php
			$effected_id="main-menu";
		  	$filetpl="<a href='\$href' target='\$target'>\$label</a>";
		  	$foldertpl="<a href='\$href' target='\$target' class='dropdown-toggle' data-toggle='dropdown'>\$label <b class='caret'></b></a>";
		  	$ul_class="dropdown-menu" ;
		  	$li_class="" ;
		  	$style="nav";
		  	$showlevel=4;
		  	$dropdown='dropdown';
		  	echo sp_get_menu("main",$effected_id,$filetpl,$foldertpl,$ul_class,$li_class,$style,$showlevel,$dropdown);
		?-->
        
<ul id="main-menu" class="nav">
	<!--li class="" id="menu-item-1"><a href="/index.php?g=Yd&amp;m=index" target="">首页</a></li-->
    <li class="dropdown" id="menu-item-6">
    	<a href="/index.php?g=Yd&amp;m=Yd&amp;cgid=13" target="" class="dropdown-toggle" data-toggle="dropdown">场地预订 <b class="caret"></b></a>
        <ul class="dropdown-menu">
        	<li class="" id="menu-item-12">
        		<a href="/index.php?g=Yd&amp;m=Yd&amp;cgid=13" target="">羽毛球</a>
                </li><li class="" id="menu-item-13">
                	<a href="/index.php?g=Yd&amp;m=Yd&amp;cgid=16" target="">乒乓球</a></li>
		</ul>
    </li>
    <li class="" id="menu-item-11"><a href="/index.php?g=Yd&amp;m=Ydlog" target="">预订记录查询</a></li>
    <li class="" id="menu-item-17"><a href="/index.php?g=Yd&amp;m=credit" target="">信用分管理</a></li>
    <php>
    	if (get_current_usertype() == 1) {
        	echo "
            <li class=\"dropdown\" id=\"menu-item-14\"><a href=\"on\" target=\"\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">管理 <b class=\"caret\"></b></a>
                <ul class=\"dropdown-menu\">
                    <li class=\"\" id=\"menu-item-15\"><a href=\"/index.php?g=Yd&amp;m=Yddatelimit&amp;a=index\" target=\"\">手动发布预订</a></li>
                    <li class=\"\" id=\"menu-item-16\"><a href=\"/index.php?g=Yd&amp;m=PlYd\" target=\"\">批量预订</a></li>
                    <li class=\"\" id=\"menu-item-8\"><a href=\"/index.php?g=Yd&amp;m=credit\" target=\"\">信用分管理</a></li>
                    <li class=\"\" id=\"menu-item-8\"><a href=\"/index.php?g=Yd&amp;m=Notice\" target=\"\">发布通知</a></li>
                    <li class=\"\" id=\"menu-item-10\"><a href=\"/index.php?g=Yd&amp;m=Report\" target=\"\">报表统计</a></li>
                </ul>
            </li>
            ";
        }
    </php>
</ul>

		<ul class="nav pull-right" id="main-menu-user">
			<li class="dropdown user login">
	            <a class="dropdown-toggle user" data-toggle="dropdown" href="#">
	            <img src="__TMPL__/Public/images/headicon.png" class="headicon"/>
	            <span class="user-nicename"></span><b class="caret"></b></a>
	            <ul class="dropdown-menu pull-right">
	               <!--li><a href="{:U('user/center/index')}"><i class="fa fa-user"></i> &nbsp;个人中心</a></li-->
	               <!--li class="divider"></li-->
	               <li><a href="{:U('user/index/logout')}"><i class="fa fa-sign-out"></i> &nbsp;退出</a></li>
	            </ul>
          	</li>
          	<li class="dropdown user offline">
	            <a class="dropdown-toggle user" data-toggle="dropdown" href="#">
	           		<img src="__TMPL__/Public/images/headicon.png" class="headicon"/>请登录哦！<b class="caret"></b>
	            </a>
	            <ul class="dropdown-menu pull-right">
	               <!--li><a href="{:U('api/oauth/login',array('type'=>'sina'))}"><i class="fa fa-weibo"></i> &nbsp;微博登录</a></li>
	               <li><a href="{:U('api/oauth/login',array('type'=>'qq'))}"><i class="fa fa-qq"></i> &nbsp;QQ登录</a></li-->
	               <li><a href="{:leuu('user/login/index')}"><i class="fa fa-sign-in"></i> &nbsp;登录</a></li>
	               <li class="divider"></li>
	               <!--li><a href="{:leuu('user/register/index')}"><i class="fa fa-user"></i> &nbsp;注册</a></li-->
	            </ul>
          	</li>
		</ul>
		<!--div class="pull-right">
        	<form method="post" class="form-inline" action="{:U('portal/search/index')}" style="margin:18px 0;">
				 <input type="text" class="" placeholder="Search" name="keyword" value="{:I('get.keyword')}"/>
				 <input type="submit" class="btn btn-info" value="Go" style="margin:0"/>
			</form>
		</div-->
       </div>
     </div>
   </div>
 </div>